package me.ywd.seckill.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 暴露秒杀接口
 * Created by Administrator on 2016/11/9 0009.
 */
@Getter
@Setter
@ToString
public class Exposer {
    private boolean exposed;
    private String md5;
    private long productId;
    // System time
    private long now;
    // Start and end time
    private long start;
    private long end;

    public Exposer(boolean exposed, long productId, long now, long start, long end) {
        this.exposed = exposed;
        this.productId = productId;
        this.now = now;
        this.start = start;
        this.end = end;
    }

    public Exposer(boolean exposed, long now, long start, long end) {
        this.exposed = exposed;
        this.now = now;
        this.start = start;
        this.end = end;
    }

    public Exposer(boolean exposed, String md5, long productId) {
        this.exposed = exposed;
        this.md5 = md5;
        this.productId = productId;
    }

    public Exposer(boolean exposed, long productId) {
        this.exposed = exposed;
        this.productId = productId;
    }
}
